package com.ljh.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘剑鸿
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OutTable对象", description="")
public class OutTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "开台ID")
    @TableId(value = "out_tableid", type = IdType.AUTO)
    private Integer outTableid;

    @ApiModelProperty(value = "客户")
    private Integer clientid;

    @ApiModelProperty(value = "用户")
    private Integer id;

    @ApiModelProperty(value = "餐桌ID")
    private Integer diningTableid;

    @ApiModelProperty(value = "开台时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") //响应给前端的数据格式化
    @TableField(fill = FieldFill.INSERT)
    private Date outTime;

    @ApiModelProperty(value = "人数")
    private Integer people;

    @ApiModelProperty(value = "餐桌编号")
    private Integer diningnumber;

    @ApiModelProperty(value = "客户名字")
    private String clientname;

    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;
}
